package org.op.service.nav;

import javax.swing.tree.TreeModel;
import javax.swing.tree.TreeNode;

import org.op.service.WwInfoObject;

public interface FileNavigationService {
	
	/**
	 *  Populate this tree-model to match the filesystem in the given workspace path
	 * 
	 * @param model
	 * @param workspace
	 * @return
	 */
	public TreeModel loadTreeRoot(TreeModel model, String workspace) throws Exception;

	/**
	 *   Return the UserData object for the given node in the tree (view?)
	 * 
	 * @param node
	 * @return
	 */
	public WwInfoObject getAssociatedInfo(TreeNode node);

	
}
